package com.mes_for_xxxxxx.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mes_for_xxxxxx.entity.Processflowouttime;
import com.mes_for_xxxxxx.entity.common.PageInfo;
import com.mes_for_xxxxxx.entity.common.Result;
import com.mes_for_xxxxxx.service.IProcessflowouttimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 工艺流程最晚截止日期表 前端控制器
 * </p>
 *
 * @author 179005
 * @since 2024-09-10
 */
@RestController
@RequestMapping("/processflowouttime")
public class ProcessflowouttimeController {
    @Autowired
    private IProcessflowouttimeService processflowouttimeService;

    /**
     * 生产线管理-工艺流程超时记录-分页查询
     * @param pageInfo
     * @return
     */
    @PostMapping("/page")
    public Result pagesOutTime(@RequestBody PageInfo pageInfo){
        int pageNum = pageInfo.getPageNum();
        int pageSize = pageInfo.getPageSize();
        Page<Processflowouttime> page = new Page<>(pageNum, pageSize);

        return Result.success(processflowouttimeService.page(page, null));
    }

}
